<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%-- JSTL表达式（判断，循环，输出） --%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <%-- 方法表达式（字符串截取，替换） --%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<c:forEach var="article" items="${pageBean.list}" varStatus="status">
<li class="am-g am-list-item-desced pet_list_one_block">
  <div class=" am-list-main">
      <a href="<%=basePath%>article/getArticleDetails/${article.articleId}" class="pet_hd_block">
          <div class="pet_list_zt_img"><img class="wh_" style="width: 100%;" src="${article.articlePic}" alt=""></div>
          <div class="am-list-item-text pet_list_two_text">${article.articleTitle}</div>
          <div class="am-list-item-text pet_list_two_text" style="color: #999;">${article.createTime}</div>
      </a>
  </div>
</li>
</c:forEach>

<c:if test="${pageBean.totalPage <= pageBean.currentPage}">
    <script>
        $("#loadArticles").html('没有更多了').css("color","#ccc");
    </script>
</c:if>
<script src="<%=basePath%>js/height.js"></script>